package com.typy.www.tpay.ui.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.typy.www.tpay.R;
import com.typy.www.tpay.bean.vm.NoticeVm;
import com.typy.www.tpay.ui.itemview.NoticeItemView;
import com.typy.www.tpay.util.Logutil;

import java.util.List;

/**
 * Created by 13799 on 2018/6/23.
 */

public class FriendsAdapter extends RecyclerView.Adapter<FriendsAdapter.ViewHolder> {

    private Context mContext;

    private List<NoticeVm> data;

    public void setData(List<NoticeVm> data) {
        this.data = data;
    }

    public FriendsAdapter(Context context){
        mContext=context;
    }

    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
       View view= LayoutInflater.from(parent.getContext()).inflate(R.layout.item_notice,parent,false);
       ViewHolder holder=new ViewHolder(view);
        return holder;
    }

    @Override
    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return data.size();
    }

    class ViewHolder extends RecyclerView.ViewHolder{

        public ViewHolder(View itemView) {
            super(itemView);
        }
    }
}
